package com.xinzhi.savingpot.background.controller;

import com.xinzhi.savingpot.background.service.impl.TaskStateServiceImpl;

import com.xinzhi.savingpot.util.BaseResponse;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api
@RequestMapping("SystemCheck")
public class SystemTaskController {

    @Autowired
    private TaskStateServiceImpl taskStateService;
    @GetMapping("/CheckTask")
    public BaseResponse changeTaskCheckId(String taskNumber,String taskStateId,String explain){

        return taskStateService.changeTaskState(taskNumber,taskStateId,explain);
    }
}
